package com.hsnn.medstgmini.base.std.model;

public enum CompReg {

	level1Grade1("11", "国企"), level1Grade2("12", "私企"), level1Grade3("13",
			"股份有限公司"), level2Grade1("21", "中外合资");

	private String key;
	private String value;

	private CompReg(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(String key) {
		if (key != null && !"".equals(key)) {
			for (CompReg hsopLevel : CompReg.values()) {
				if (key.equals(hsopLevel.key)) {
					return hsopLevel.value;
				}
			}
		}
		return "";
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
